package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.VideoDao;
import com.oscarmovie.model.Paging;
import com.oscarmovie.model.Video;

public class VideoServiceImpl implements VideoService{
	private VideoDao videoDao;

	public void setVideoDao(VideoDao videoDao) {
		this.videoDao = videoDao;
	}

	public VideoDao getVideoDao() {
		return videoDao;
	}

	
	public void save(Video video) {
		videoDao.save(video);
	}

	
	public Video load(int id) {
		Video video =  videoDao.load(id);
		return video;
	}

	

	public void delete(Video video) {
		videoDao.delete( video);
	}

	public List<Video> list(Paging paging) {
		
		return videoDao.list(paging);
	}

	public List<Video> list(Paging paging, int accountId) {
		return videoDao.list(paging,accountId);
	}
}
